// 基于template/src/widgets/{{appEntities}}/{{ctrls@DATAVIEW}}-data-view/{{spinalCase ctrl.codeName}}-data-view-model.ts.hbs生成
import { IDataViewCtrlModel } from "@/core";

//  获取列表模型
function getModel(): IDataViewCtrlModel {
    return {
        cssName: "",             
        aggMode: '',
        caption: '',
        controlType: 'DATAVIEW',
        codeName: 'MajorStateData',
        entityCodeName: 'IBIZBOOK',
        entityLogicName: '图书',
        ctrlMsgModel:[
    ],
        cardLayout:{ 'width':0,'height':0,'cardColXS':-1,'cardColSM':-1,'cardColMD':-1,'cardColLG':-1 },
        name: 'dataview',
        noSort: false,
        showHeader: true,
        sortDir: '',
        sortField: '',
        singleSelect:false,
        dataImport: {
            codeName: 'DataImport',
            ignoreError: false,
        },
        paging: {
            defaultPageSize: 20
        },
        uIActionGroup: {
            "Edit": {
                caption: "编辑",
                uIActionMode: "FRONT",
                disabled: false,
                visible: true,
                actionTag: "Edit",
                noPrivDisplayMode: 1,
                dataAccessAction: "EDIT",
                actionTarget: "SINGLEKEY",
                showCaption: true,
                showIcon: true,
                predefinedType: "",
                actionDECodeName: "IBIZBOOK",
                
                iconClass: "fa fa-edit"
            },
            "Delete": {
                caption: "删除",
                uIActionMode: "BACKEND",
                disabled: false,
                visible: true,
                actionTag: "Delete",
                noPrivDisplayMode: 1,
                dataAccessAction: "DELETE",
                actionTarget: "SINGLEKEY",
                showCaption: true,
                showIcon: true,
                predefinedType: "",
                actionDECodeName: "IBIZBOOK",
                
                iconClass: "fa fa-remove"
            }
        }
    };
}

export const model = getModel();